package com.wowo.day3;

import com.wowo.day1.User;

import java.util.List;

public interface UserDao3 {
    // name:空 age=0 select * from users;
    // name:不空 age=0                   where name like '%name%'
    // name:空 age!=0                    where age>20
    // name:不空 age!=0                  where name like '@name@' and age > 20
    List<User> getUserByUser (User user);

    //update users set name=?,age=?,pwd=?,birthday=? where id =?
    // name 空 不改该字段
    // age 空 不该字段
    public void updateUser(User user);

    //批量删除
    public void deleteUsers(String[] ids);

}
